<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>文章发布</title>
    <base href="<?php echo base_url();?>">
    <link rel="stylesheet" href="./style/admin/css/public.css" />
    <script type="text/javascript" src="./style/admin/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="./ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="./ueditor/ueditor.all.js"></script>
    <script type="text/javascript">
        window.UEDITOR_HOME_URL = './ueditor/';
        window.onload = function () {
            window.UEDITOR_CONFIG.initialFrameHeight = 500;
            window.UEDITOR_CONFIG.initialFrameWidth = 900;
            window.UEDITOR_CONFIG.elementPathEnabled = false;
            window.UEDITOR_CONFIG.maximumWords = 5000;

            var ue = UE.getEditor('content');
        }
    </script>
    <style type="text/css">
        .error{
            color: red;
        }
    </style>
    <!--&lt;!&ndash; 配置文件 &ndash;&gt;-->
    <!--<script type="text/javascript" src="ueditor.config.js"></script>-->
    <!--&lt;!&ndash; 编辑器源码文件 &ndash;&gt;-->
    <!--<script type="text/javascript" src="ueditor.all.js"></script>-->
    <!--&lt;!&ndash; 实例化编辑器 &ndash;&gt;-->
    <!--<script type="text/javascript">-->
        <!--var ue = UE.getEditor('container');-->
    <!--</script>-->
</head>
<body>
<form action="./admin/article/issue_article_doing.html" method="post" enctype="multipart/form-data">
    <table class="table">
        <tr class="th"><td colspan="10" align="center">文章发表</td></tr>
        <tr>
            <td class="td">标题</td>
            <td>
                <input type="text" name="title" value="<?php echo set_value('title');?>">
                <?php echo form_error('title', '<span class="error">', '</span>');?>
            </td>
        </tr>
        <tr>
            <td>类型</td>
            <td>
                <?php foreach($type_table as $row):?>
                    <input type="radio" name="type" value="<?php echo $row['id'];?>" <?php echo set_radio('type', $row['id']);?> >
                    <?php echo $row['type'];?>
                <?php endforeach ?>
                <!--<input type="radio" name="type" value="0" checked="checked" <?php echo set_radio('type', '0');?>>普通-->
                <!--<input type="radio" name="type" value="1"/ <?php echo set_radio('type', '1');?>>热门-->
                <?php echo form_error('type', '<span class="error">', '</span>'); ?>
            </td>
        </tr>
        <tr>
            <td>
                栏目
            </td>
            <td>
                <select name="cid" id="">
                    <?php  foreach($cate_table as $row):  ?>
                        <option value="<?php echo $row['cid']; ?>" <?php echo set_select('cid', $row['cid']); ?> >
                            <?php echo $row['cname']; ?>
                        </option>
                    <?php endforeach ?>
                </select>
                <?php echo form_error('cid', '<span class="error">', '</span>');?>
            </td>
        </tr>
        <tr>
            <td>缩略图</td>
            <td><input type="file" name="thumb"></td>
        </tr>
        <tr>
            <td>摘要</td>
            <td><textarea name="info" id="" class="textarea_comment" placeholder="文章摘要..."> <?php echo set_value('info');?></textarea>
            <?php echo form_error('info', '<span class="error">', '</span>');?>
            </td>
        </tr>
        <tr>
            <td>内容</td>
            <td>
                    <!--<script id="container" name="content" type="text/plain">文章内容</script>-->
                    <textarea name="content" id="content" class="textarea" placeholder="文章内容..."><?php echo set_value('content');?></textarea>
                    <?php echo form_error('content', '<span class="error">', '</span>');?>
            </td>
        </tr>
        <tr>
            <td colspan="10" align="center"><button type="submit" class="input_button">发布</button></td>
        </tr>
    </table>
</form>
</body>
</html>
